<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>优惠活动</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport"
		  content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link href="__PUBLIC__/css/layui.css" rel="stylesheet" type="text/css"/>
	<link href="__PUBLIC__/css/admin.css" rel="stylesheet" type="text/css"/>
	<link href="__PUBLIC__/css/public.css" rel="stylesheet" type="text/css"/>

</head>
<body>
<div class="layui-conter">
	<div class="layui-col-md12">
		<div class="navigation">
			<span>校长></span><span>优惠活动</span>
		</div>

		<div class="white-conter">
			<div class="layui-col-md12">
				<div class="layui-card">
					<div class="title-blue"><b>优惠活动</b></div>
					<div class="layui-card-body addPadding">
						<form class="layui-form" action="__CONTROLLER__/index" lay-filter="component-form-group">
							<div class=" layui-row" style="margin-top: 20px">
								<div class=" layui-col-xs3" style="width: 20%;">
									<label class="layui-form-label">名称：</label>
									<div class="layui-input-block">
										<input type="text" name="name" placeholder="请输入名称" value="{$result.name}" class="layui-input" >
									</div>
								</div>
								<div class=" layui-col-xs3" style="width: 20%;">
									<label class="layui-form-label">课程类别：</label>
									<div class="layui-input-block">
										<select name="curlist">
											<option value="" selected="">请选择</option>
											<volist name="curlist" id="s" key="k">
												<option value="{$s.id}" <if condition="$result.curlist eq $s['id']">selected</if> >{$s.cname}</option>
											</volist>
										</select>
									</div>
								</div>
								<div class=" layui-col-xs3" style="width: 20%;">
									<label class="layui-form-label">开启状态：</label>
									<div class="layui-input-block">
										<select name="status">
											<option value="" selected="">请选择</option>
											<volist name="status" id="sl" key="kl">
												<option value="{$kl}" <if condition="$result.status eq $kl">selected</if> >{$sl}</option>
											</volist>
										</select>
									</div>
								</div>
								<div class="layui-inline search-1" style="margin-left: 20px;">
									<button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit="" >搜索</button>
								</div>
								<div class="layui-inline search-1" style="margin-left: 20px;">
									<a href="__CONTROLLER__/index" class="layui-btn layui-btn-sm layui-btn-normal" lay-submit="" >重置</a>
								</div>
							</div>
						</form>
					</div>
				</div>
				<div class="layui-col-md12">
					<div class="layui-card">
						<div class="layui-card-body">
							<div class="layui-btn-group" style="margin:0 0 20px">
								<a href="__CONTROLLER__/add"><button class="layui-btn layui-btn-primary layui-btn-sm btnGroup-img" id="newadd" data-type="test1"><img src="__PUBLIC__/images/add.png">新增优惠
								</button></a>
							</div>
							<table  class="layui-hide" id="test-table-operate" lay-filter="test-table-operate"></table>
							<div class="layui-form layui-border-box layui-table-view" lay-filter="LAY-table-1">
								<div class="layui-table-box" style="margin-bottom: 20px">
									<div class="layui-table-body layui-table-main">
										<table cellspacing="0" cellpadding="0" border="0" class="layui-table">
											<thead>
											<tr>
												<th data-field="m-type">
													<div class="layui-table-cell laytable-cell-m-type">
														<span>优惠名称</span>
														</span>
													</div>
												</th>
												<th data-field="m-date">
													<div class="layui-table-cell laytable-cell-m-date" align="center" >
														<span>活动开始时间</span>
													</div>
												</th>
												<th data-field="m-filesize">
													<div class="layui-table-cell laytable-cell-m-filesize" align="center" style="padding-left: 58px;">
														<span>活动结束时间</span>
													</div>
												</th>
												<th data-field="m-linenum">
													<div class="layui-table-cell laytable-cell-m-linenum" align="center">
														<span>优惠金额</span>
													</div>
												</th>
												<th data-field="m-linenum">
													<div class="layui-table-cell laytable-cell-m-linenum" align="center">
														<span>当前状态</span>
													</div>
												</th>
												<th data-field="m-date">
													<div class="layui-table-cell laytable-cell-m-linenum" align="center" style="width: 155px;">
														<span>查看优惠课程</span>
													</div>
												</th>
												<!--<th data-field="m-importman">-->
													<!--<div class="layui-table-cell laytable-cell-m-importman" align="center">-->
														<!--<span>导入人</span>-->
													<!--</div>-->
												<!--</th>-->
												<th data-field="operation">
                                                    <div class="layui-table-cell laytable-cell-1-operation" align="center">
                                                        <span>操作</span>
                                                    </div>
                                                </th>
											</tr>
											</thead>
											<tbody>
											<foreach name="sc_data" item="sc">
												<tr data-index="0" class="">
													<td data-field="m-type" align="center">
														<div class="layui-table-cell laytable-cell-m-type">{$sc.name}</div>
													</td>
													<td data-field="m-filename" align="center" >
														<div class="layui-table-cell laytable-cell-m-filename" style="padding-left: 58px;">{$sc.startime}</div>
													</td>
													<td data-field="m-date" align="center">
														<div class="layui-table-cell laytable-cell-m-date" style="padding-left: 0px;">{$sc.stoptime}</div>
													</td>
													<td data-field="m-filesize" align="center">
														<div class="layui-table-cell laytable-cell-m-filesize" style="padding-left: 0px;margin-left: 0px;right: 24px;">
															&#65509;{$sc.amount}
														</div>
													</td>
													<td data-field="m-linenum" align="center">
														<div class="layui-table-cell laytable-cell-m-linenum">
															<if condition="$sc['status'] eq 1">
															启用中
															<else/>
																未启用
															</if>
														</div>
													</td>
													<!--<td data-field="m-importman" align="center">-->
														<!--<div class="layui-table-cell laytable-cell-m-importman">{$sc.sc_name}</div>-->
													<!--</td>-->
													<td data-field="m-importman" align="center">
														<div class="layui-btn layui-btn-sm layui-btn-normal" >{$sc.cname}</div>
													</td>
													<td data-field="operation" align="center">
                                                         <div class="layui-table-cell laytable-cell-1-operation">
															 <a href="__CONTROLLER__/add/id/{$sc.id}"><button data-method="offset" data-type="test8"  class="img-but edit-img" data-type="test8" lay-event="edit" id="btn"></button></a>
															 <a href="__CONTROLLER__/del/id/{$sc.id}"><button data-method="offset" data-type="auto"  class="img-but del-img"></button></a>
                                                         </div>
                                                     </td>
												</tr>
											</foreach>
											</tbody>
										</table>

									</div>
								</div>
								<div class="layui-table-page">
									<div id="layui-table-page1">
										<div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-1">
											{$page}
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>



	</div>
</div>
</body>
<script src="__PUBLIC__/js/layui.all.js"></script>
<script src="__PUBLIC__/js/jquery.js"></script>
<script>
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        //执行一个laydate实例
        laydate.render({
            elem: '#datesign' //指定元素
        });
    });
</script>
</html>